package com.java.tutorials.designpattern.behavioral.command;

//停风扇命令：
public class FanOffCommand implements Command{
    private Fan myFan;
    public FanOffCommand (Fan F) {
        myFan = F;
    }
    public void execute () {
        myFan.stopRotate ();
    }
}
